<!--
 * @Author: yaojian66 1327629137@qq.com
 * @Date: 2022-06-27 15:33:10
 * @LastEditors: yaojian66 1327629137@qq.com
 * @LastEditTime: 2022-06-27 15:41:14
 * @FilePath: \geyao\第七十题 修改元素内容.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修改元素内容</title>
</head>
<body>
  <!-- 请补全JavaScript函数，将类为"box"的div元素内容修改为"欢迎来到牛客网"。 -->
  <div class='box'></div>
  <script>
 function modifyText(){
            // 补全代码
            document.getElementsByClassName('box')[0].innerHTML = '欢迎来到牛客网'
        }
  </script>
</body>
</html>